﻿using System;
using System.Data.Entity;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace ESN.Models
{
    public class LiveOAuthResponse
    {
        public int ID { get; set; }
        public string access_token { get; set; }
        public int expires_in { get; set; }
        public string refresh_token { get; set; }
        public string scope { get; set; }
        public string token_type { get; set; }
    }

    public class LiveUserInfo
    {
        public string id { get; set; }
        public string name { get; set; }
        public string first_name { get; set; }
        public string last_name { get; set; }
        public string link { get; set; }
        public string gender { get; set; }
        public LiveEmail emails { get; set; }
        public string locale { get; set; }
        public string updated_time { get; set; }
    }

    public class LiveEmail
    {
        public string preferred { get; set; }
        public string account { get; set; }
        public string personal { get; set; }
        public string business { get; set; }
    }

    public class LiveFile
    {
        public string id { get; set; }
        public string source { get; set; }
    }
}